package listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import application.GameManager;
import application.snakes.Snake;

public class newGameListener implements ActionListener {

	private GameManager _gameManager;
	private Snake _snake;
	public newGameListener(GameManager manager,Snake snake){
		this._gameManager = manager;
		this._snake = snake;
	}
	
	@Override
	public void actionPerformed(ActionEvent arg0) {
		this._gameManager.gameOver(this._snake.get_score());
	}

}
